<?php
namespace Lm\Models;
//该model废弃，使用common下的model，by qgz 20181220
class XHLmRentHouse extends basicModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iRHId;

    /**
     * @var string
     */
    public $sProvince;

    /**
     * @var string
     */
    public $sCity;

    /**
     * @var string
     */
    public $sCounty;

    /**
     * @var string
     */
    public $sLandlord;

    /**
     * @var string
     */
    public $sLoadPhone;

    /**
     * @var integer
     */
    public $iCompRun;

    /**
     * @var string
     */
    public $sAgency;

    /**
     * @var string
     */
    public $sAgencyComp;

    /**
     * @var string
     */
    public $sAgencyPhone;

    /**
     * @var string
     */
    public $sHouseType;

    /**
     * @var string
     */
    public $sAddress;



    /**
     * @var string
     */
    public $sContactDate;

    /**
     * @var string
     */
    public $mDesc;



    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iLastModifyUserId;

    /**
     * @var integer
     * create by xjq 20180514
     */
    public $iSecArea;

    /**
     * @var integer
     * create by xjq 20180514
     */
    public $iThirdArea;

    /**
     * 退租
     * @var integer
     * create by dale 20181017
     */
    public $bRent;

    /**
     * @var string
     * create by dale 20181102
     */
    public $mUnRentDesc;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        $this->setSource("XHLm_RentHouse");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
//    public function getSource()
//    {
//        return 'XHLm_RentHouse';
//    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XHLmRentHouse[]|XHLmRentHouse|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XHLmRentHouse|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }


}
